<template>
  <div>
    <div class="mainheader">
      <header1></header1>
      <header2></header2>
      <!-- 子路由的链接 -->
      <ul class="nav">
        <li>长沙</li>
        <li><router-link to="/hot">热映</router-link></li>
        <li><router-link to="/cinema">影院</router-link></li>
        <li><router-link to="/wait">待映</router-link></li>
        <li><router-link to="/classic">经典电影</router-link></li>
      </ul>
    </div>
    <!-- 子路由的路由出口 -->
    <div class="con">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
//引入第一个头部
//../../ 相对路径
import header1 from "../../components/commonh/header1.vue";
//@ 表示  src开始找起   ，绝对路径
import header2 from "@/components/commonh/header2.vue";
export default {
  name: "movie",
  //注册
  components: {
    header1,
    header2,
  },
};
</script>

<style scoped>
.con {
  margin-top: 154.5px;
  margin-bottom: 51px;
}
.mainheader {
  position: fixed;
  top: 0;
  width: 100%;
  height: 154.5px;
  z-index: 999;
}
.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  height: 44px;
  line-height: 44px;
  background: #fff;
  font-size: 15px;
  border-bottom: 1px solid #e8e8e8;
}
.nav a {
  color: #666;
  height: 40px;
  display: inline-block;
}
.nav a.router-link-exact-active {
  font-size: 17px;
  font-weight: bold;
  border-bottom: 3px solid #f03d37;
}
</style>